# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=magicrescue
pkgver=1.1.6
pkgrel=1
pkgdesc="Find and recover deleted files on block devices."
arch=('i686' 'x86_64')
url="http://freshmeat.net/projects/magicrescue/"
license=('GPL')
source=(http://www.student.dtu.dk/~s042078/$pkgname/release/$pkgname-$pkgver.tar.gz)
md5sums=('68104d08770d8a38c7a39e63ee953178')
build() {
  cd "${srcdir}/$pkgname-$pkgver"
  install -d "${pkgdir}/usr" || return 1
  ./configure --prefix=/usr
  make PREFIX="${pkgdir}/usr" || return 1
  sed -i 's|$(PREFIX)/man/man1|$(PREFIX)/share/man/man1|' Makefile || return 1
  make PREFIX="${pkgdir}/usr" install
}
